﻿using System.Linq;
using System.Web.Mvc;
using Journal.Front.Presentation.Models.StudyGroupModels;
using Journal.Front.Presentation.PresentationServicesInterfaces;

namespace Journal.Front.Presentation.Controllers
{
    public class StudyGroupController : Controller
    {
        private readonly IStudyGroupPresentationService studyGroupPresentationService;

        public StudyGroupController(IStudyGroupPresentationService studyGroupPresentationService)
        {
            this.studyGroupPresentationService = studyGroupPresentationService;
        }

        public ActionResult StudyGroupList(int userId, bool? isAll)
        {
            StudyGroupSelectModel model = studyGroupPresentationService.GetStudyGroupSelectModel(userId, isAll);
            return View("Select", model);
        }

        public ActionResult StudyGroupStudents(int studyGroupId)
        {
            return View("StudentList");
        }

        public ActionResult StudyGroup(int groupId)
        {
            return View();
        }

        public ActionResult GetSchedule()
        {
            return View("../Slicing/Schedule");
        }

        public ActionResult GetJournal()
        {
            return View("../Slicing/Journal");
        }

        public ActionResult GetStJournal()
        {
            return View("../Slicing/StudentJournal");
        }
    }
}